package com.share.two.d_spring_aop_cglib;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.stereotype.Service;

@Service
public class MyAspect implements MethodInterceptor{

	@Override
	public Object invoke(MethodInvocation mi) throws Throwable {
		System.out.println("前方法");
		Object obj = mi.proceed();
		System.out.println("后方法");
		return obj;
	}
	

}
